package cn.edu.just.firstjavaapp.l17;

public class MyCountThread extends Thread{
    @Override
    public void run() {
        for(int i=1;i<=10;i++){
            System.out.println(Thread.currentThread().getName()+":"+i);
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                System.out.println("睡眠被打断了");
                e.printStackTrace();
            }
        }
    }
}
